import request from '@/utils/request'

//新增
export function add(data) {
  return request({
    url: 'api/medication/save.do',
    method: 'post',
    data
  })
}
//修改
export function update(data) {
  return request({
    url: 'api/user/update.do',
    method: 'post',
    data
  })
}
//查询
export function all(data) {
  return request({
    url: 'api/user/all.do',
    method: 'get',
    params:data
  })
}
